<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2024/6/13
 * Time: 8:37
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;

class Base extends Model
{
    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
}